(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/shop/index" ], {
    "25d5": function(e, t, a) {
        a.r(t);
        var n, o = a("69b2"), i = a("8805");
        for (n in i) "default" !== n && function(e) {
            a.d(t, e, function() {
                return i[e];
            });
        }(n);
        a("7c30");
        var r = a("f0c5"), o = Object(r.a)(i.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        t.default = o.exports;
    },
    "2e8e": function(e, a, c) {
        (function(i) {
            Object.defineProperty(a, "__esModule", {
                value: !0
            }), a.default = void 0;
            var e, n = (e = c("a34a")) && e.__esModule ? e : {
                default: e
            };
            function d(e, t, a, n, o, i, r) {
                try {
                    var s = e[i](r), d = s.value;
                } catch (e) {
                    return a(e), 0;
                }
                s.done ? t(d) : Promise.resolve(d).then(n, o);
            }
            function o(s) {
                return function() {
                    var e = this, r = arguments;
                    return new Promise(function(t, a) {
                        var n = s.apply(e, r);
                        function o(e) {
                            d(n, t, a, o, i, "next", e);
                        }
                        function i(e) {
                            d(n, t, a, o, i, "throw", e);
                        }
                        o(void 0);
                    });
                };
            }
            var r = getApp(), s = null, t = {
                data: function() {
                    return {
                        module_name: r.globalData.module_name,
                        showAlert_login: !1,
                        userinfo: i.getStorageSync("userinfo"),
                        setting: i.getStorageSync("setting"),
                        wxCode: "",
                        systemtype: "",
                        swiperItems: [],
                        youlikes: [],
                        contact_title: "",
                        contact_title_text: "",
                        contact_title_desc: "",
                        contact_id: "",
                        contact_type: "",
                        contact_thumb: "",
                        showAlert: !1,
                        appid_type: 0,
                        qudao_tkl: "",
                        is_qudao_tkl: 0,
                        showAlert_taobaoauth: !1,
                        elm_url: [],
                        meituan_url: [],
                        taskClose: !1,
                        unLogin: !1,
                        title: "",
                        token: "",
                        navHei: "",
                        selfInfor: "",
                        redInfor: "",
                        imgUrl: "",
                        taskLqList: [],
                        tixian: 1,
                        hongbao_image: "",
                        navList: [],
                        config: [],
                        koiplazaList: [],
                        koiplazaListOld: [],
                        boutiqueList: [],
                        firstAd: [],
                        picture: "",
                        wxVideoZ: "",
                        selfhelpList: [],
                        lvList: [],
                        animationData: {},
                        isMoney: !1,
                        isGreAni: !0,
                        isNewRed: !0,
                        isGetBtn: !1,
                        newPeopleMoney: "",
                        onlyIndex: "",
                        drawals: "",
                        Control: "",
                        isauthorize: !1,
                        status: 0,
                        res: "",
                        RedCoupon: "",
                        selected: 0,
                        iv: "",
                        encryptedData: "",
                        hasUserInfo: "",
                        recording: "",
                        loadingType: 0,
                        page: 1,
                        tasknum: 0,
                        pageKey: "",
                        height: 1334,
                        tabBar: [],
                        is_tabbar: 0,
                        sharetitle: "",
                        sharepic: "",
                        appid: "",
                        path: "",
                        search_id: "",
                        uid: 0
                    };
                },
                components: {
                    gracePage: function() {
                        c.e("graceUI/components/gracePage").then(function() {
                            return resolve(c("1021"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceSearch: function() {
                        c.e("graceUI/components/graceSearch").then(function() {
                            return resolve(c("de21"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceSwiper: function() {
                        c.e("graceUI/components/graceSwiper").then(function() {
                            return resolve(c("9fc3"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    addMiniTip: function() {
                        Promise.all([ c.e("common/vendor"), c.e("components/add-mini-tip/add-mini-tip") ]).then(function() {
                            return resolve(c("00a6"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceDialog: function() {
                        c.e("graceUI/components/graceDialog").then(function() {
                            return resolve(c("f85d"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceCoupons: function() {
                        c.e("graceUI/components/graceCoupons").then(function() {
                            return resolve(c("6546"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceLoading: function() {
                        c.e("graceUI/components/graceLoading").then(function() {
                            return resolve(c("1d04"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceFullLoading: function() {
                        c.e("graceUI/components/graceFullLoading").then(function() {
                            return resolve(c("3be5"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceImg: function() {
                        c.e("graceUI/components/graceImg").then(function() {
                            return resolve(c("1d6e"));
                        }.bind(null, c)).catch(c.oe);
                    },
                    graceEmptyNew: function() {
                        c.e("graceUI/components/graceEmptyNew").then(function() {
                            return resolve(c("f8df"));
                        }.bind(null, c)).catch(c.oe);
                    }
                },
                props: {},
                onReady: function() {
                    i.getSystemInfo({
                        success: function(e) {
                            e.windowHeight;
                        }
                    });
                },
                onLoad: function(e) {
                    var a = this;
                    return o(n.default.mark(function e() {
                        var t;
                        return n.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return e.next = 2, a.$onLaunched;

                              case 2:
                                (t = a).setting = i.getStorageSync("setting"), t.userinfo = i.getStorageSync("userinfo"), 
                                i.hideLoading(), wx.createInterstitialAd && ((s = wx.createInterstitialAd({
                                    adUnitId: i.getStorageSync("setting").ad_cp_id
                                })).onLoad(function() {}), s.onError(function(e) {
                                    console.log("onError event emit", e);
                                }), s.onClose(function() {}), s && s.show().catch(function(e) {
                                    console.log("onError event emit", e);
                                })), a.module_name = r.globalData.module_name, a.load_goods(), a.jifendaohang();

                              case 12:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }))();
                },
                onPullDownRefresh: function() {
                    this.page = 1, this.loadingType = 0, this.youlikes = [], this.user_info(), this.loadtasknum(), 
                    this.load_goods(), this.jifendaohang();
                },
                onReachBottom: function() {
                    1 != this.loadingType && 2 != this.loadingType && this.load_goods();
                },
                onShow: function() {
                    var t = this;
                    return o(n.default.mark(function e() {
                        return n.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                t.user_info(), t.loadtasknum(), i.hideLoading();

                              case 3:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }))();
                },
                onShareAppMessage: function() {
                    var e = "pages/shop/index?uid=" + i.getStorageSync("userinfo").user_id;
                    return {
                        title: this.sharetitle,
                        imageUrl: this.sharepic,
                        path: e
                    };
                },
                onHide: function() {},
                onUnload: function() {},
                methods: {
                    fatherHeight: function(e) {
                        this.height = e;
                    },
                    openShopad: function(e) {
                        i.getStorageSync("userinfo").nickname || 1 != i.getStorageSync("setting").login_type || !wx.getUserProfile ? (e = e.currentTarget.dataset, 
                        this.api_url = e.item_id, this.openad(e)) : this.showDialog2();
                    },
                    openad: function(a) {
                        var e, n = this;
                        1 == a.is_warm && a.tplid ? (e = r.globalData.util.url("entry/wxapp/subscribemessage2", {
                            m: r.globalData.module_name
                        }), i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                id: a.item_id,
                                type: 2
                            },
                            success: function(e) {
                                var t;
                                i.setStorageSync("subscribemessage" + a.item_id, e.data.warm_daynum), parseInt(i.getStorageSync("subscribemessage" + a.item_id)) < parseInt(a.tplid_oneday_num) ? (t = new Array(), 
                                t = a.tplid.split(","), wx.requestSubscribeMessage({
                                    tmplIds: t,
                                    success: function(e) {
                                        "reject" == e[t[0]] ? 7 != a.adtype ? n.openad2(a) : i.showToast({
                                            title: "您取消了订阅",
                                            icon: "none"
                                        }) : (e = r.globalData.util.url("entry/wxapp/subscribemessage2", {
                                            m: r.globalData.module_name
                                        }), i.request({
                                            url: e,
                                            method: "POST",
                                            header: {
                                                "content-type": "application/x-www-form-urlencoded"
                                            },
                                            data: {
                                                openid: i.getStorageSync("openid"),
                                                id: a.item_id,
                                                type: 1
                                            },
                                            success: function(e) {
                                                i.setStorageSync("subscribemessage" + a.item_id, e.data.warm_daynum), 7 != a.adtype || i.showToast({
                                                    title: "订阅成功",
                                                    icon: "none"
                                                });
                                            }
                                        }), n.openad2(a));
                                    },
                                    fail: function(e) {
                                        e.openad2(a);
                                    }
                                })) : 7 != a.adtype ? n.openad2(a) : i.showToast({
                                    title: "您已订阅",
                                    icon: "none"
                                });
                            }
                        })) : n.openad2(a);
                    },
                    openad2: function(t) {
                        i.showLoading({
                            title: "加载中...",
                            mask: !1
                        });
                        var e, a, n = this;
                        1 == t.adtype || 14 == t.adtype || 15 == t.adtype ? 0 < t.appid_type2 || 14 == t.adtype || 15 == t.adtype ? (e = r.globalData.util.url("entry/wxapp/index_jump", {
                            m: r.globalData.module_name
                        }), i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                adid: t.item_id
                            },
                            success: function(e) {
                                1 == e.data.jump_type ? i.navigateToMiniProgram({
                                    appId: e.data.jump_appid,
                                    path: e.data.jump_path
                                }) : 2 == e.data.jump_type ? (n.contact_type = "ad_new", n.contact_id = t.item_id, 
                                n.contact_title = e.data.title, n.contact_title_text = e.data.title_text, n.contact_title_desc = e.data.title_desc, 
                                n.contact_thumb = i.getStorageSync("setting").dianwo, n.showDialog3()) : i.showToast({
                                    title: e.data.msg,
                                    icon: "none"
                                }), i.hideLoading();
                            }
                        })) : (i.navigateToMiniProgram({
                            appId: t.appid,
                            path: t.path
                        }), i.hideLoading()) : 5 == t.adtype ? (i.navigateTo({
                            url: "../kefu/webview?return_url=" + encodeURIComponent(t.url) + "&t=" + Date.parse(new Date())
                        }), i.hideLoading()) : 10 == t.adtype ? (this.$refs.addmini.showAddMiniProgramTips = 1, 
                        i.hideLoading()) : 11 == t.adtype || 7 == t.adtype ? i.hideLoading() : 4 == t.adtype ? (i.setStorageSync("index_nav", t.url), 
                        -1 != t.url.indexOf("../index/") || -1 != t.url.indexOf("../meituangroup/") || -1 != t.url.indexOf("../user/") || -1 != t.url.indexOf("../movie/") || -1 != t.url.indexOf("../shop/") || -1 != t.url.indexOf("../kefu/") || -1 != t.url.indexOf("../meituan/") || -1 != t.url.indexOf("../elm/") || -1 != t.url.indexOf("../mall/") ? i.navigateTo({
                            url: t.url
                        }) : -1 != t.url.indexOf("../../../pages/index/") || -1 != t.url.indexOf("../../../pages/user/") || -1 != t.url.indexOf("../../../pages/kefu/") ? (a = t.url.replace("../../../pages/", "../"), 
                        i.navigateTo({
                            url: a
                        })) : -1 != t.url.indexOf("../../../pages/meituan/") || -1 != t.url.indexOf("../../../pages/elm/") || -1 != t.url.indexOf("../../../pages/eat/") ? (a = t.url.replace("../../../pages/", "../../pagesA/pages/"), 
                        i.navigateTo({
                            url: a
                        })) : -1 != t.url.indexOf("../../pagesA/pages/movie/") || -1 != t.url.indexOf("../../pagesA/pages/shop/") || -1 != t.url.indexOf("../../pagesA/pages/mallA/mallindex") ? (a = t.url.replace("../../pagesA/pages/", "../"), 
                        i.navigateTo({
                            url: a
                        })) : -1 == t.url.indexOf("../../pagesA/pages/movieA/") && -1 == t.url.indexOf("../../pagesA/pages/shopA/") && -1 == t.url.indexOf("../../pagesA/pages/meituan/") && -1 == t.url.indexOf("../../pagesA/pages/elm/") && -1 == t.url.indexOf("../../pagesA/pages/eat/") && -1 == t.url.indexOf("../../pagesA/pages/userA/") && (-1 != t.url.indexOf("../meituan/") || -1 != t.url.indexOf("../elm/") || -1 != t.url.indexOf("../eat/")) ? (a = t.url.replace("../", "../../pagesA/pages/"), 
                        i.navigateTo({
                            url: a
                        })) : i.navigateTo({
                            url: t.url
                        }), i.hideLoading(), i.hideLoading()) : 2 == t.adtype || 3 == t.adtype || 9 == t.adtype ? (e = r.globalData.util.url("entry/wxapp/api", {
                            m: r.globalData.module_name,
                            o: "ad_kefubind"
                        }), i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                adtype: "ad_new",
                                adid: t.item_id,
                                openid: i.getStorageSync("openid")
                            },
                            success: function(e) {}
                        }), this.contact_title_desc = "", this.contact_type = "ad_new", this.contact_id = t.item_id, 
                        this.contact_title = t.title, this.contact_title_text = t.title_text, this.contact_title_desc = t.title_desc, 
                        this.contact_thumb = i.getStorageSync("setting").dianwo, i.hideLoading(), this.showDialog3()) : 8 == t.adtype ? 1 == t.mall_adtype ? i.navigateTo({
                            url: "../../pagesA/pages/mallA/huodong?id=" + t.item_id
                        }) : 2 == t.mall_adtype && this.loadMallapigoodslist(t) : 12 == t.adtype ? (i.previewImage({
                            urls: [ t.open_thumb ]
                        }), i.hideLoading()) : 13 == t.adtype && this.getCoupon(t);
                    },
                    loadMallapigoodslist: function(t) {
                        this.loadStatus = "loading";
                        var e = r.globalData.util.url("entry/wxapp/mallapigoodslist", {
                            m: r.globalData.module_name
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                id: t.item_id,
                                lon: i.getStorageSync("lon"),
                                lat: i.getStorageSync("lat")
                            },
                            success: function(e) {
                                200 == e.data.code && (e.data.appid ? i.navigateToMiniProgram({
                                    appId: e.data.appid,
                                    path: e.data.path
                                }) : i.navigateTo({
                                    url: "../../pagesA/pages/mallA/huodong?id=" + t.item_id
                                })), i.hideLoading();
                            }
                        });
                    },
                    getCoupon: function(t) {
                        var a = this;
                        if (i.getStorageSync("path" + t.item_id)) return i.getStorageSync("appid" + t.item_id) ? i.navigateToMiniProgram({
                            appId: i.getStorageSync("appid" + t.item_id),
                            path: i.getStorageSync("path" + t.item_id)
                        }) : i.setClipboardData({
                            data: i.getStorageSync("path" + t.item_id),
                            success: function(e) {
                                i.showToast({
                                    title: "内容已复制",
                                    icon: "success"
                                });
                            }
                        }), void i.hideLoading();
                        var e = r.globalData.util.url("entry/wxapp/mall_goods_getcoupon", {
                            m: r.globalData.module_name
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                goodsid: t.goodsid,
                                pingtai: t.mall_type,
                                goodssign: t.goodssign,
                                search_id: a.search_id,
                                quan_url: t.quan_url,
                                uid: a.uid,
                                id: t.item_id
                            },
                            success: function(e) {
                                200 == e.data.code && ("tb" == t.mall_type ? (a.path = e.data.tkl, i.setStorageSync("path" + t.item_id, e.data.tkl), 
                                i.setStorageSync("pid_time", e.data.pid_time), i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && i.setStorageSync("pid_use_time", i.getStorageSync("pid_time")), 
                                i.setClipboardData({
                                    data: e.data.tkl,
                                    success: function(e) {
                                        i.showToast({
                                            title: "内容已复制",
                                            icon: "success"
                                        });
                                    }
                                })) : (a.appid = e.data.appid, a.path = e.data.path, i.setStorageSync("appid" + t.item_id, e.data.appid), 
                                i.setStorageSync("path" + t.item_id, e.data.path), i.navigateToMiniProgram({
                                    appId: e.data.appid,
                                    path: e.data.path
                                })), i.hideLoading());
                            }
                        });
                    },
                    meituan_urlFun: function() {
                        var e, t = this;
                        1 == t.appid_type && i.getStorageSync("mtwm_url") ? i.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: i.getStorageSync("mtwm_url")
                        }) : 2 == t.appid_type && i.getStorageSync("mtsc_url") ? i.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: i.getStorageSync("mtsc_url")
                        }) : (e = r.globalData.util.url("entry/wxapp/api", {
                            m: r.globalData.module_name,
                            o: "qrcode_mtelm"
                        }), i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                appid_type: t.appid_type
                            },
                            success: function(e) {
                                e = r.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                                console.log("qrcode_mtelm:" + e), 1 == t.appid_type && (i.setStorageSync("mtwm_url", e.mtwm_url), 
                                i.setStorageSync("mtwm_h5", e.mtwm_h5), i.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: e.mtwm_url
                                })), 2 == t.appid_type && (i.setStorageSync("mtsc_url", e.mtsc_url), i.setStorageSync("mtsc_h5", e.mtsc_h5), 
                                i.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: e.mtsc_url
                                }));
                            }
                        }));
                    },
                    closeAlert: function() {
                        this.closeDialog2();
                    },
                    getWxCode: function() {
                        var t = this;
                        wx.login({
                            success: function(e) {
                                t.wxCode = e.code;
                            }
                        });
                    },
                    updatepid: function() {
                        var e = r.globalData.util.url("entry/wxapp/api", {
                            m: r.globalData.module_name,
                            o: "updatepid"
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid")
                            },
                            success: function(e) {}
                        });
                    },
                    login: function(t) {
                        var a = this;
                        this.closeDialog2(), i.getSetting({
                            success: function(e) {
                                e.authSetting["scope.userInfo"] ? i.getUserInfo({
                                    success: function(e) {
                                        a.userAuth(t, e.userInfo, "login");
                                    }
                                }) : a.userAuth(t, null, "login");
                            }
                        });
                    },
                    gotask: function(e) {
                        i.navigateTo({
                            url: "task"
                        });
                    },
                    change1: function(e) {
                        i.navigateTo({
                            url: "../../pagesA/pages/userA/creditchange"
                        });
                    },
                    getUserProfile: function() {
                        var a = this;
                        wx.getUserProfile({
                            desc: "请完善会员资料",
                            success: function(e) {
                                console.log(e.userInfo);
                                var t = r.globalData.util.url("entry/wxapp/userinfo2", {
                                    m: r.globalData.module_name
                                }), e = {
                                    avatarUrl: e.userInfo.avatarUrl,
                                    nickName: e.userInfo.nickName,
                                    openid: i.getStorageSync("openid")
                                };
                                i.request({
                                    url: t,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: e,
                                    success: function(e) {
                                        1 == e.data.status && (i.setStorageSync("userinfo", e.data.data.userinfo), a.userinfo = e.data.data.userinfo, 
                                        a.closeDialog2(), i.showToast({
                                            title: "登录成功",
                                            icon: "none"
                                        }));
                                    }
                                });
                            }
                        });
                    },
                    userAuth: function(a, e, n) {
                        var o = this;
                        "getUserInfo:ok" == a.detail.errMsg ? wx.login({
                            success: function(e) {
                                var t = r.globalData.util.url("entry/wxapp/api", {
                                    m: r.globalData.module_name,
                                    o: "userinfo"
                                }), e = {
                                    code: e.code,
                                    encryptedData: a.detail.encryptedData,
                                    iv: a.detail.iv,
                                    openid: i.getStorageSync("openid"),
                                    invite_uid: wx.getStorageSync("invite_uid")
                                };
                                i.request({
                                    url: t,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: e,
                                    success: function(e) {
                                        1 == e.data.status ? (e = r.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                                        e = JSON.parse(e), i.setStorageSync("userinfo", e.userinfo), o.userinfo = e.userinfo, 
                                        "login" == n && (o.closeDialog2(), i.showToast({
                                            title: "登录成功",
                                            icon: "none"
                                        }))) : i.showToast({
                                            title: "您取消了请求",
                                            icon: "none"
                                        });
                                    }
                                });
                            }
                        }) : i.showToast({
                            title: "获取用户信息失败",
                            icon: "none"
                        });
                    },
                    showDialog1: function() {
                        this.$refs.showAlert_taobaoauth.open();
                    },
                    closeDialog1: function() {
                        this.$refs.showAlert_taobaoauth.hide();
                    },
                    showDialog2: function() {
                        this.$refs.showAlert_login.open();
                    },
                    closeDialog2: function() {
                        this.$refs.showAlert_login.hide();
                    },
                    showDialog3: function() {
                        this.$refs.showAlert.open();
                    },
                    closeDialog3: function() {
                        this.$refs.showAlert.hide();
                    },
                    userlogin: function() {
                        !i.getStorageSync("userinfo").nickname && 1 == i.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : this.closeDialog2();
                    },
                    taobaoauth: function() {
                        var t = this;
                        i.setClipboardData({
                            data: this.qudao_tkl,
                            success: function(e) {
                                i.showToast({
                                    title: "复制成功，请打开淘宝授权",
                                    icon: "none"
                                }), t.is_qudao_tkl = 1;
                            }
                        });
                    },
                    retaobaoauth: function() {
                        this.is_qudao_tkl = 0, this.qudao_tkl = "", this.gettaobaoauth();
                    },
                    notaobaoauth: function() {
                        3 == this.appid_type && i.navigateToMiniProgram({
                            appId: "wxece3a9a4c82f58c9",
                            path: i.getStorageSync("setting").default_elmwmpath
                        }), 4 == this.appid_type && i.navigateToMiniProgram({
                            appId: "wxece3a9a4c82f58c9",
                            path: i.getStorageSync("setting").default_elmscpath
                        });
                    },
                    taobaoauth_done: function() {
                        var a = this, e = r.globalData.util.url("entry/wxapp/api", {
                            m: r.globalData.module_name,
                            o: "taobaoauth_done"
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                appid_type: a.appid_type
                            },
                            success: function(e) {
                                var t;
                                0 != e.data.status ? (t = r.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                                t = JSON.parse(t), 1 == e.data.status ? (3 == a.appid_type && (i.setStorageSync("elmwm_url", t.elmwm_url), 
                                i.setStorageSync("elmwmqrcode", t.elmwm_qrcode), i.setStorageSync("elmwm_h5", t.elmwm_h5), 
                                i.setStorageSync("pid_time", +t.pid_time), i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && i.setStorageSync("pid_use_time", i.getStorageSync("pid_time")), 
                                i.setStorageSync("is_qudao", t.is_qudao), a.closeDialog1(), i.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: t.elmwm_url
                                })), 4 == a.appid_type && (i.setStorageSync("elmsc_url", t.elmsc_url), i.setStorageSync("elmscqrcode", t.elmsc_qrcode), 
                                i.setStorageSync("elmsc_h5", t.elmsc_h5), i.setStorageSync("pid_time", +t.pid_time), 
                                i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && i.setStorageSync("pid_use_time", i.getStorageSync("pid_time")), 
                                i.setStorageSync("is_qudao", t.is_qudao), a.closeDialog1(), i.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: t.elmsc_url
                                }))) : i.showModal({
                                    title: "提示",
                                    content: "未获取到您的授权信息，请重试！",
                                    showCancel: !1,
                                    success: function(e) {
                                        e.confirm || e.cancel;
                                    }
                                })) : i.showModal({
                                    title: "提示",
                                    content: "未获取到您的授权信息，请重试！",
                                    showCancel: !1,
                                    success: function(e) {
                                        e.confirm || e.cancel;
                                    }
                                });
                            }
                        });
                    },
                    gettaobaoauth: function() {
                        var t = this, a = this, e = r.globalData.util.url("entry/wxapp/api", {
                            m: r.globalData.module_name,
                            o: "gettaobaoauth"
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                appid_type: a.appid_type
                            },
                            success: function(e) {
                                1 == e.data.status ? (a.showDialog1(), a.qudao_tkl = e.data.data) : 0 == e.data.status ? i.showToast({
                                    title: "获取授权信息出错",
                                    icon: "none"
                                }) : 2 == e.data.status && (e = r.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                                e = JSON.parse(e), console.log("gettaobaoauth:" + e), 3 == t.appid_type && (i.setStorageSync("elmwm_url", e.elmwm_url), 
                                i.setStorageSync("elmwmqrcode", e.elmwm_qrcode), i.setStorageSync("elmwm_h5", e.elmwm_h5), 
                                i.setStorageSync("pid_time", +e.pid_time), i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && i.setStorageSync("pid_use_time", i.getStorageSync("pid_time")), 
                                i.setStorageSync("is_qudao", e.is_qudao), i.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: e.elmwm_url
                                }), console.log(i.getStorageSync("elmwm_url"))), 4 == t.appid_type && (i.setStorageSync("elmsc_url", e.elmsc_url), 
                                i.setStorageSync("elmscqrcode", e.elmsc_qrcode), i.setStorageSync("elmsc_h5", e.elmsc_h5), 
                                i.setStorageSync("pid_time", +e.pid_time), i.getStorageSync("pid_time") != i.getStorageSync("pid_use_time") && i.setStorageSync("pid_use_time", i.getStorageSync("pid_time")), 
                                i.setStorageSync("is_qudao", e.is_qudao), i.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: e.elmsc_url
                                }), console.log(i.getStorageSync("elmsc_url"))));
                            }
                        });
                    },
                    user_info: function() {
                        var t = this, e = r.globalData.util.url("entry/wxapp/userinfonew", {
                            m: r.globalData.module_name
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid")
                            },
                            success: function(e) {
                                i.setStorageSync("userinfo", e.data.data), t.userinfo = e.data.data;
                            }
                        });
                    },
                    loadtasknum: function() {
                        var a = this, e = r.globalData.util.url("entry/wxapp/tasknum2", {
                            m: r.globalData.module_name
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid")
                            },
                            success: function(e) {
                                var t = r.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), t = JSON.parse(t);
                                console.log(t), a.tasknum = t.tasknum, a.sharetitle = e.data.sharetitle, a.sharepic = e.data.sharepic, 
                                i.stopPullDownRefresh();
                            }
                        });
                    },
                    openProductInfo: function(e) {
                        i.navigateTo({
                            url: "../../pagesA/pages/shopA/detail?item_id=" + e.currentTarget.dataset.productid
                        });
                    },
                    load_goods: function() {
                        var t = this, e = r.globalData.util.url("entry/wxapp/api", {
                            m: r.globalData.module_name,
                            o: "goods"
                        });
                        this.loadingType = 1, i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                page: t.page,
                                pagesize: 8
                            },
                            success: function(e) {
                                e = r.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                                0 < e.total && (t.youlikes = t.youlikes.concat(e.data.items)), t.page > e.total ? 0 == t.youlikes.length ? (t.youlikes = [], 
                                t.loadingType = 4) : t.loadingType = 2 : t.page == e.total ? t.loadingType = 2 : (t.page = t.page + 1, 
                                t.loadingType = 0, t.page = t.page);
                            }
                        });
                    },
                    jifendaohang: function() {
                        var t = this, e = r.globalData.util.url("entry/wxapp/adlist", {
                            m: r.globalData.module_name
                        });
                        i.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                openid: i.getStorageSync("openid"),
                                type: 51,
                                system_type: i.getStorageSync("systemtype")
                            },
                            success: function(e) {
                                t.navList = e.data.adlist;
                            }
                        });
                    },
                    getRedMoney: function() {
                        this.isGreAni = !1;
                        var e = i.createAnimation({
                            duration: 2e3,
                            timingFunction: "ease"
                        });
                        (this.animation = e).rotateY(1080).step(), this.animationData = e.export();
                    },
                    bindReceive: function() {
                        this.selfInformation(), this.isNewRed = !1;
                    },
                    selfInformation: function() {
                        i.getStorageSync("token");
                    },
                    goLuckDetail: function(e) {
                        var t = e.currentTarget.dataset.index, a = this.lvList[t].relation_id, n = this.lvList[t].member.id, o = this.lvList[t].task_condition, e = this.selfInfor.id, t = this.onlyIndex;
                        i.navigateTo({
                            url: "/pages/luckydrawdetails/luckydrawdetails?luckydetail=" + a + "&only=+ " + t + "&luckydrawHide=2&fenxiang_id=" + a + "&fenxiang_condition=" + o + "&fenxiang_memberid=" + n + "&userid=" + e
                        });
                    },
                    taskProgressFun: function() {},
                    bindOpenScroll: function() {
                        var e = this;
                        this.taskClose = !this.taskClose, setTimeout(function() {
                            e.taskClose = !1;
                        }, 8e3);
                    },
                    bindSuccess: function() {},
                    bindScrollClose: function() {
                        this.taskClose = !1;
                    },
                    scroll: function() {},
                    koiplazaCurrent: function() {},
                    bScroll: function() {},
                    swiperCurrent: function() {}
                }
            };
            a.default = t;
        }).call(this, c("543d").default);
    },
    "69b2": function(e, t, a) {
        a.d(t, "b", function() {
            return o;
        }), a.d(t, "c", function() {
            return i;
        }), a.d(t, "a", function() {
            return n;
        });
        var n = {
            uIcon: function() {
                return a.e("uview-ui/components/u-icon/u-icon").then(a.bind(null, "bee6"));
            }
        }, o = function() {
            this.$createElement;
            this._self._c;
        }, i = [];
    },
    "7c30": function(e, t, a) {
        var n = a("bcd5");
        a.n(n).a;
    },
    8805: function(e, t, a) {
        a.r(t);
        var n, o = a("2e8e"), i = a.n(o);
        for (n in o) "default" !== n && function(e) {
            a.d(t, e, function() {
                return o[e];
            });
        }(n);
        t.default = i.a;
    },
    bcd5: function(e, t, a) {},
    dd02: function(e, t, a) {
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            a("0cda"), t(a("66fd")), e(t(a("25d5")).default);
        }).call(this, a("543d").createPage);
    }
}, [ [ "dd02", "common/runtime", "common/vendor" ] ] ]);